// TreeCtrlSubclass.h: interface for the CTreeCtrlSubclass class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TREECTRLSUBCLASS_H__8864A8D9_C8B1_4FCE_ADCD_D2B5F8209234__INCLUDED_)
#define AFX_TREECTRLSUBCLASS_H__8864A8D9_C8B1_4FCE_ADCD_D2B5F8209234__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "WndSubclass.h"

class CTreeCtrlSubclass : public CWndSubclass  
{
public:
	CTreeCtrlSubclass();
	virtual ~CTreeCtrlSubclass();
protected:
	virtual LRESULT WindowProc(UINT msg, WPARAM wp, LPARAM lp);
private:
	void OnNcPaint();
	void OnPaint();
	void DoGradientFill(CDC *pDC, CRect* rect);
public:
	static COLORREF m_crFrmNor;
	static COLORREF m_crFrmFoc;
public:
	virtual BOOL SubclassWindow(CWnd* pRealWnd);
	virtual BOOL UnSubclassWindow();
};

#endif // !defined(AFX_TREECTRLSUBCLASS_H__8864A8D9_C8B1_4FCE_ADCD_D2B5F8209234__INCLUDED_)
